package com.xrc;

public class Person {
    private String name;
    private Integer age;
    private  Double money;
    public String getName(){
        return name;
    }
    public void setName(String name){
        this.name=name;
    }
    //无参数构造方法
    public Person(){

    }

    public Person(String name, Integer age, Double money) {
        this.name = name;
        this.age = age;
        this.money = money;
    }

    //有参数构造方法
    public Person(String name){
        this.name=name;
    }
    public  int sum(int a,int b){
        return a+b;
    }
    public  double sum(double a,double b){
        return a+b;
    }
}
